{% extends 'templates/users/personal.html' %}
<head>
    {% load static %}
    <meta charset="UTF-8">
    <title>管理评论</title>
    {% block headjs %}
    <link rel="stylesheet" href="{% static 'css/layui.css' %}" media="all">
    {% endblock %}
</head>
{% block main %}
    <div class="title">管理评论</div>
    <ul style="width: 95%;margin-left:2.5%;height: 700px;overflow-y: auto">
    <table class="layui-table">
  <colgroup>
    <col>
  </colgroup>
  <thead>
    <tr>
      <th style="width: 5%;">id</th>
      <th style="width: 10%">图片</th>
      <th style="width: 10%">车名</th>
      <th style="width: 10%">内容</th>
      <th style="width: 17%">时间</th>
      <th style="width: 6%">操作</th>
    </tr>
  </thead>
  <tbody>
      {% csrf_token %}
      {% for evaluate in evaluate_list %}
         
    <tr>
      <td>{{ forloop.counter }}</td>
      <td><img src="/{{ evaluate.Cars.durl }}"></td>
      <td>{{ evaluate.Cars.cname}}</td>
      <td>{{ evaluate.evaluate }}</td>
      <td>{{ evaluate.updated_at }}</td>
      <td>
          <p style="margin-top: 20px"><a href="/car_model_all/cardetail/{{ evaluate.Cars.id}}/">查看</a></p>
          <p style="margin-top: 20px"><a href="/forum/deletecontent/{{ evaluate.id}}/">删除</a></p></td>
    </tr>
     {% endfor %}


  </tbody>

</table>
    </ul>


{% endblock %}
{% block footjs %}
            <script src="{% static 'js/jquery.min.js' %}"></script>
        <script src="{% static 'layui/layui.js' %}"></script>
<script>
  
</script>

{% endblock %}